﻿<!DOCTYPE html>
<html>
<head>
    <title>应用WEB报表服务器实现数据导出 - 锐浪HTML5报表</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="Description" content="锐浪HTML5报表应用WEB报表服务器实现数据导出。" />
    <meta name="Keywords" content="WEB报表,WEB报表服务器" />
    <link href="../../libs/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <script src="../../libs/jquery-1.12.4.min.js"></script>
    <script src="../../libs/bootstrap/js/bootstrap.min.js"></script>
    <script src="../grhtml5-6.6-min.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
        $(function () {
            //创建报表显示器，参数指定其在网页中的占位标签的ID，关联的报表模板URL，关联的报表数据URL
            var reportViewer = rubylong.grhtml5.insertReportViewer("report_holder", "../../grf/1a.grf", "../../data/DataCenter.jsp?data=Customer");
            reportViewer.start(); //启动报表运行，生成报表
        });
    </script>

    <style type="text/css">
        #toolbar {
            display: block;
            position: fixed;
            width: 100%;
            height: 40px;
            margin: 0;
            padding: 4px 4px;
            border: solid 1px;
            background-color: #fae3e3;
        }

        #report_holder {
            padding-top: 40px;
        }
    </style>
</head>
<body>
    <div id="toolbar" class="row">
        <a class="btn btn-sm btn-primary" role="button" href="../../server/general/SimpleReport.jsp?report=1a&data=Customer&type=pdf&open=attachment">PDF</a>
        <a class="btn btn-sm btn-primary" role="button" href="../../server/general/SimpleReport.jsp?report=1a&data=Customer&type=pdf&open=inline" target="_blank">PDF直接显示</a>
        <a class="btn btn-sm btn-primary" role="button" href="../../server/general/SimpleReport.jsp?report=1a&data=Customer&type=xls&open=attachment">Excel</a>
        <a class="btn btn-sm btn-primary" role="button" href="../../server/general/SimpleReport.jsp?report=1a&data=Customer&type=rtf&open=attachment">RTF</a>
        <a class="btn btn-sm btn-primary" role="button" href="../../server/general/SimpleReport.jsp?report=1a&data=Customer&type=csv&open=attachment">CSV</a>
        <a class="btn btn-sm btn-primary" role="button" href="../../server/general/SimpleReport.jsp?report=1a&data=Customer&type=txt&open=attachment">文本</a>
        <span style="margin-left:12px;"></span>
        <div class="btn-group btn-group-sm">
            <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">图像<span class="caret"></span></button>
            <ul class="dropdown-menu" role="menu">
                <li><a href="../../server/general/SimpleReport.jsp?report=1a&data=Customer&type=img&open=inline" target="_blank">PNG</a></li>
                <li><a href="../../server/general/SimpleReport.jsp?report=1a&data=Customer&type=img&img=jpg&open=inline" target="_blank">JPG</a></li>
                <li><a href="../../server/general/SimpleReport.jsp?report=1a&data=Customer&type=img&img=tif&open=inline" target="_blank">TIF</a></li>
                <li><a href="../../server/general/SimpleReport.jsp?report=1a&data=Customer&type=img&img=bmp&open=inline" target="_blank">BMP</a></li>
            </ul>
        </div>
        <span style="margin-left:12px;"></span>
        <a class="btn btn-sm btn-primary" role="button" href="../../server/general/SimpleReport.jsp?report=1a&data=Customer&type=grp&open=attachment">报表打印文档</a>
        <a class="btn btn-sm btn-primary" role="button" href="../../server/general/SimpleReport.jsp?report=1a&data=Customer&type=grd&open=attachment">报表查看文档</a>
    </div>

    <div id="report_holder">
        HTML5报表占位标签
    </div>
</body>
</html>